<template>
  <div class="BKXQ">
    <div class="top">
      <span
        style="font-weight: 900; font-size: 22px; color: #000"
        v-if="chronicType == '高血压'"
        >{{ bqInfo.category }}</span
      >
      <span
        style="font-weight: 900; font-size: 22px; color: #000"
        v-if="chronicType == '糖尿病'"
        >{{ bqInfo.category }}</span
      >
      <span
        style="font-weight: 900; font-size: 22px; color: #000"
        v-if="chronicType == '慢阻肺'"
        >{{ bqInfo.diagnosis }}</span
      >
      <span
        style="font-weight: 900; font-size: 22px; color: #000"
        v-if="chronicType == '脑卒中'"
        >{{ bqInfo.category | ncz_category }}</span
      >
      <span
        style="font-weight: 900; font-size: 22px; color: #000"
        v-if="chronicType == '冠心病'"
        >冠心病</span
      >
      <span
        style="font-weight: 900; font-size: 22px; color: #000"
        v-if="chronicType == '慢性肾脏病'"
        >慢性肾脏病</span
      >
      <span style="display: inline-block; margin-left: 10px; color: #000">{{
        userInfo.bkCode
      }}</span>
      <!-- <el-tag
        type="warning"
        style="color: #000; margin-left: 10px"
        size="small"
      >
        <i class="el-icon-info" style="color: orangered"></i>
        该居民已有公卫责任医生【陈丘-中兴村卫生室】负责管档
      </el-tag> -->
    </div>
    <el-tabs>
      <el-tab-pane label="报卡信息">
        <p style="font-weight: 700; font-size: 20px">个人信息</p>
        <div class="top">
          <p>
            <span style="font-weight: 900; font-size: 24px; color: #000">{{
              userInfo.residentName
            }}</span>
            <span style="display: inline-block; margin-left: 10px">{{
              userInfo.gender | gender
            }}</span>
            <!-- <span style="display: inline-block; margin-left: 10px">69</span> -->
            <el-tag type="warning" size="small" style="margin-left: 15px">{{
              userInfo.maritalStatus | maritalStatus
            }}</el-tag>
            <el-tag type="success" size="small" style="margin-left: 15px">{{
              userInfo.education | education
            }}</el-tag>
            <el-tag type="info" size="small" style="margin-left: 15px">{{
              userInfo.duty | duty
            }}</el-tag>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">出生日期：</span>
            <span>{{ userInfo.dataBirth }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">证件类别：</span>
            <span>{{ userInfo.certificateType | certificateType }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">证件号码：</span>
            <span>{{ userInfo.idCard }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">本人电话：</span>
            <span>{{ userInfo.telephone }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">民族：</span>
            <span>{{ userInfo.national | national }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">工作单位：</span>
            <span>{{ userInfo.workUnit }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">户籍地址：</span>
            <span>{{ userInfo.permanentAddress }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">现住地址：</span>
            <span>{{ userInfo.nowAddress }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">现住地址居住6个月以上：</span>
            <span>{{ userInfo.isResideSixMonth | isResideSixMonth }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">医保类型：</span>
            <span>{{ userInfo.healthType }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">联系人姓名：</span>
            <span>{{ userInfo.contactName }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">联系人电话：</span>
            <span>{{ userInfo.contactPhone }}</span>
          </p>
          <p style="display: inline-block; width: 100%">
            <span style="color: #000">备注：</span>
            <span>{{ userInfo.remark }}</span>
            <!-- <span style="display: block; color: blue">编辑</span> -->
          </p>
          <!--  -->
        </div>
        <p style="font-weight: 700; font-size: 20px; margin-top: 10px">
          患病信息
        </p>
        <div class="top" v-if="chronicType == '糖尿病'">
          <p style="display: inline-block; width: 33%">
            <span style="color: #000"> 门诊号：</span>
            <span>{{ userInfo.outPatientNo }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">住院号：</span>
            <span>{{ userInfo.inPatientNo }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">血糖值（mmol/L）：</span>
            <span>{{ bqInfo.glu }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">测量类型：</span>
            <span>{{ bqInfo.testType }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">测量日期：</span>
            <span>{{ bqInfo.testDate }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">诊断类型：</span>
            <span>{{ bqInfo.category }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">并发症：</span>
            <span>{{ bqInfo.complication }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">并发性：</span>
            <span>{{ bqInfo.concomitant }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">icd：</span>
            <span>{{ bqInfo.icd }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">报告医生：</span>
            <span>{{ userInfo.bkDoctorName }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">报告日期：</span>
            <span>{{ userInfo.bkTime }}</span>
          </p>
        </div>
        <div class="top" v-if="chronicType == '高血压'">
          <p style="display: inline-block; width: 33%">
            <span style="color: #000"> 门诊号：</span>
            <span>{{ userInfo.outPatientNo }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">住院号：</span>
            <span>{{ userInfo.inPatientNo }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">心率：</span>
            <span>{{ bqInfo.hr }}次/分</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">收缩压：</span>
            <span>{{ bqInfo.sbp }}mmHg</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">舒张压：</span>
            <span>{{ bqInfo.dbp }}mmHg</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">诊断类型：</span>
            <span>{{ bqInfo.category }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">icd：</span>
            <span>{{ bqInfo.icd }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">报告医生：</span>
            <span>{{ userInfo.bkDoctorName }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">报告日期：</span>
            <span>{{ userInfo.bkTime }}</span>
          </p>
        </div>
        <div class="top" v-if="chronicType == '慢阻肺'">
          <p style="display: inline-block; width: 33%">
            <span style="color: #000"> 门诊号：</span>
            <span>{{ userInfo.outPatientNo }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">住院号：</span>
            <span>{{ userInfo.inPatientNo }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">诊断时间：</span>
            <span>{{ bqInfo.diagnosisDate }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">ICD码：</span>
            <span>{{ bqInfo.icd }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">诊断结果：</span>
            <span>{{ bqInfo.diagnosis }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">合并症：</span>
            <span>{{ bqInfo.otherIndex | otherIndex }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">诊断依据：</span>
            <span>{{ bqInfo.diagnosisSource | diagnosisSource }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">诊断机构来源：</span>
            <span>{{ bqInfo.diagnosisInstitution }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">诊断机构名称：</span>
            <span>{{ bqInfo.diagnosisName }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">诊断机构级别：</span>
            <span>{{ bqInfo.diagnosisLevel }}</span>
          </p>
        </div>
        <div class="top" v-if="chronicType == '脑卒中'">
          <p style="display: inline-block; width: 33%">
            <span style="color: #000"> 门诊号：</span>
            <span>{{ userInfo.outPatientNo }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">住院号：</span>
            <span>{{ userInfo.inPatientNo }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">脑卒中分类：</span>
            <span>{{ bqInfo.category | ncz_category }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">发病日期：</span>
            <span>{{ bqInfo.onset }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">是否首次发病：</span>
            <span>{{ bqInfo.first == true ? "是" : "否" }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">诊断日期：</span>
            <span>{{ bqInfo.diagnosisDate }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">ICD码：</span>
            <span>{{ bqInfo.icd }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">诊断依据：</span>
            <span>{{ bqInfo.diagnosis | diagnosis }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">其他生化指标：</span>
            <span>{{ bqInfo.otherIndex }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">出院记录（小结）：</span>
            <span>{{ bqInfo.summary }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">诊断机构名称：</span>
            <span>{{ bqInfo.diagnosisInstitution }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">诊断机构级别：</span>
            <span>{{ bqInfo.diagnosisLevel }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">转归：</span>
            <span>{{ bqInfo.transfer }}</span>
          </p>
        </div>
        <div class="top" v-if="chronicType == '冠心病'">
          <p style="display: inline-block; width: 33%">
            <span style="color: #000"> 门诊号：</span>
            <span>{{ userInfo.outPatientNo }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">住院号：</span>
            <span>{{ userInfo.inPatientNo }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">心率：</span>
            <span>{{ bqInfo.hr }}次/分</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">体重：</span>
            <span>{{ bqInfo.weight }}KG</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">收缩压：</span>
            <span>{{ bqInfo.sbp }}mmHg</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">舒张压：</span>
            <span>{{ bqInfo.dbp }}mmHg</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">icd：</span>
            <span>{{ bqInfo.icd }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">报告医生：</span>
            <span>{{ userInfo.bkDoctorName }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">报告日期：</span>
            <span>{{ userInfo.bkTime }}</span>
          </p>
        </div>
        <div class="top" v-if="chronicType == '慢性肾脏病'">
          <p style="display: inline-block; width: 33%">
            <span style="color: #000"> 门诊号：</span>
            <span>{{ userInfo.outPatientNo }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">住院号：</span>
            <span>{{ userInfo.inPatientNo }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">收缩压：</span>
            <span>{{ bqInfo.sbp }}mmHg</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">舒张压：</span>
            <span>{{ bqInfo.dbp }}mmHg</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">诊断类型：</span>
            <span>{{ bqInfo.icdType }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">icd：</span>
            <span>{{ bqInfo.icd }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">icd：</span>
            <span>{{ bqInfo.icd }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">慢性肾脏病分期：</span>
            <span>{{ bqInfo.category }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">eGFR：</span>
            <span>{{ bqInfo.eGFR }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">报告日期：</span>
            <span>{{ bqInfo.bkTime }}</span>
          </p>
        </div>
        <div class="top" v-if="chronicType == '肿瘤'">
          <p style="display: inline-block; width: 33%">
            <span style="color: #000"> 发病日期：</span>
            <span>{{ userInfo.fabingriqi }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">发病实足年龄：</span>
            <span>{{ userInfo.fabingshizunianling }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">发病时户口所在地：</span>
            <span>{{ bqInfo.fabingshisuozaidiSheng }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">发病时住址：</span>
            <span>{{ bqInfo.fabingshizhuzhiSheng }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">诊断依据：</span>
            <span>{{ bqInfo.zhenduanyiju }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">医院诊断：</span>
            <span>{{ bqInfo.yiyuanzhenduan }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">病理诊断：</span>
            <span>{{ bqInfo.binglizhenduan }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">解剖学部位：</span>
            <span>{{ bqInfo.jiepoxuebuwei }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">形态学：</span>
            <span>{{ bqInfo.xintaixue }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">行为：</span>
            <span>{{ bqInfo.xingwei }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">分级：</span>
            <span>{{ bqInfo.fenji }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">病理 TNM 分期：</span>
            T：<span>{{ bqInfo.binglifenqiT }}</span> N：<span>{{
              bqInfo.binglifenqiN
            }}</span>
            M：<span>{{ bqInfo.binglifenqiM }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">临床 TNM 分期：</span>
            T：<span>{{ bqInfo.linchuangfenqiT }}</span> N：<span>{{
              bqInfo.linchuangfenqiN
            }}</span>
            M：<span>{{ bqInfo.linchuangfenqiM }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">备注：</span>
            <span>{{ bqInfo.beizhu }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">门诊号：</span>
            <span>{{ bqInfo.menzhenhao }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">住院号：</span>
            <span>{{ bqInfo.zhuyuanhao }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">治疗情况：</span>
            <span>{{ bqInfo.zhiliaoqingkuang }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">治疗项目：</span>
            <span>{{ bqInfo.zhiliaoxiangmu }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">诊断编码：</span>
            <span>{{ bqInfo.icd }}</span>
          </p>
          <p style="display: inline-block; width: 33%">
            <span style="color: #000">诊断名称：</span>
            <span>{{ bqInfo.yiyuanzhenduan }}</span>
          </p>
        </div>
      </el-tab-pane>
      <el-tab-pane label="操作记录" v-if="false">
        <el-timeline>
          <el-timeline-item
            color="rgb(46,160,254)"
            timestamp="2021-03-08 10:55:51"
            placement="top"
          >
            <el-card>
              <p style="margin-bottom: 0">
                和继珍
                <span style="font-weight: 900">[黎明乡卫生院]</span>
                接收报卡，为居民标记了[65岁及以上老年人、2型糖尿病患者、一般人]人群标签
              </p>
            </el-card>
          </el-timeline-item>
          <el-timeline-item
            color="rgb(46,160,254)"
            timestamp="2021-02-20 18:37:22"
            placement="top"
          >
            <el-card>
              <p style="margin-bottom: 0">
                <span style="color: turquoise">系统</span>
                使用通用规则，将报卡自动分拣到：<span style="font-weight: 900"
                  >[黎明乡卫生院]</span
                >
                ，行政区划：云南省丽江市玉龙纳西族自治县黎明傈僳族乡，使用现住址：云南省丽江市玉龙纳西族自治县黎明傈僳族乡丽江市玉龙县黎明乡中兴村委会柏木组111号
              </p>
            </el-card>
          </el-timeline-item>
          <el-timeline-item
            color="rgb(46,160,254)"
            timestamp="2021-01-27 15:50:16"
            placement="top"
          >
            <el-card>
              <p style="margin-bottom: 0">来源:老报卡数据清洗</p>
            </el-card>
          </el-timeline-item>
          <el-timeline-item
            color="rgb(46,160,254)"
            timestamp="2019-05-30 11:11:40"
            placement="top"
          >
            <el-card>
              <p style="margin-bottom: 0">
                <span style="color: turquoise">老版报卡系统</span>
                <span style="font-weight: 900"> [丽江市人民医院]</span>
                分拣报卡至
                <span style="font-weight: 900">[黎明乡卫生院]</span>
              </p>
            </el-card>
          </el-timeline-item>
          <el-timeline-item
            color="rgb(46,160,254)"
            timestamp="2019-05-30 11:11:39"
            placement="top"
          >
            <el-card>
              <p style="margin-bottom: 0">
                <span style="color: turquoise">老版报卡系统 </span>
                <span style="font-weight: 900"> [丽江市人民医院]</span>
                审核报卡
              </p>
            </el-card>
          </el-timeline-item>
          <el-timeline-item
            color="rgb(46,160,254)"
            timestamp="2019-05-30 11:02:57"
            placement="top"
          >
            <el-card>
              <p style="margin-bottom: 0">
                <span style="color: turquoise">老版报卡系统 </span>
                <span style="font-weight: 900"> [丽江市人民医院]</span>
                创建并提交报卡
              </p>
            </el-card>
          </el-timeline-item>
        </el-timeline>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
export default {
  data() {
    return {
      bqInfo: {},
      userInfo: {},
    };
  },
  props: {
    chronicType: {
      type: String,
      required: true,
      default: "",
    },
    info: {
      type: String,
      required: true,
      default: "",
    },
    tid: {
      type: String,
      required: true,
      default: "",
    },
  },
  filters: {
    gender(val) {
      var str = "";
      if (val == 1) {
        str = "男";
      }
      if (val == 2) {
        str = "女";
      }
      if (val == 9) {
        str = "未知的性别";
      }
      if (val == 0) {
        str = "未说明的性别";
      }
      return str;
    },
    duty(val) {
      var str = "";
      if (val == 1) {
        str = "国家机关、党群组织、企业、事业单位责任人";
      }
      if (val == 2) {
        str = "专业技术人员";
      }
      if (val == 3) {
        str = "办事人员和有关人员";
      }
      if (val == 4) {
        str = "商业、服务业人员";
      }
      if (val == 5) {
        str = "生产、运输设备操作人员及有关人员";
      }
      if (val == 6) {
        str = "军人";
      }
      if (val == 7) {
        str = "不便分类的其他从业人员";
      }
      if (val == 8) {
        str = "无职业";
      }
      return str;
    },
    certificateType(val) {
      var str = "";
      if (val == 1) {
        str = "身份证";
      }
      if (val == 2) {
        str = "护照";
      }
      if (val == 3) {
        str = "出生证";
      }
      if (val == 4) {
        str = "户口簿";
      }
      if (val == 5) {
        str = "其他标识";
      }
      return str;
    },
    usualType(val) {
      var str = "";
      if (val == 0) {
        str = "其他";
      }
      if (val == 1) {
        str = "户籍";
      }
      if (val == 2) {
        str = "非户籍";
      }
      return str;
    },
    national(val) {
      var mz = "";
      if (val == 1) {
        mz = "汉族";
        return mz;
      }
      if (val == 2) {
        mz = "苗族";
        return mz;
      }
      if (val == 3) {
        mz = "回族";
        return mz;
      }
      if (val == 4) {
        mz = "壮族";
        return mz;
      }
      if (val == 5) {
        mz = "满族";
        return mz;
      }
      if (val == 6) {
        mz = "白族";
        return mz;
      }
      if (val == 7) {
        mz = "蒙古族";
        return mz;
      }
      if (val == 8) {
        mz = "维吾尔族";
        return mz;
      }
      if (val == 9) {
        mz = "土家族";
        return mz;
      }
      if (val == 10) {
        mz = "傣族";
        return mz;
      }
      if (val == 11) {
        mz = "彝族";
        return mz;
      }
      if (val == 12) {
        mz = "藏族";
        return mz;
      }
      if (val == 13) {
        mz = "黎族";
        return mz;
      }
      if (val == 14) {
        mz = "怒族";
        return mz;
      }
      if (val == 15) {
        mz = "景颇族";
        return mz;
      }
      if (val == 16) {
        mz = "朝鲜族";
        return mz;
      }
      if (val == 17) {
        mz = "土族";
        return mz;
      }
      if (val == 18) {
        mz = "门巴族";
        return mz;
      }
      if (val == 19) {
        mz = "水族";
        return mz;
      }
      if (val == 20) {
        mz = "毛南族";
        return mz;
      }
      if (val == 21) {
        mz = "乌孜别克族";
        return mz;
      }
      if (val == 22) {
        mz = "布依族";
        return mz;
      }
      if (val == 23) {
        mz = "布朗族";
        return mz;
      }
      if (val == 24) {
        mz = "东乡族";
        return mz;
      }
      if (val == 25) {
        mz = "仡佬族";
        return mz;
      }
      if (val == 26) {
        mz = "仫佬族";
        return mz;
      }
      if (val == 27) {
        mz = "达斡尔族";
        return mz;
      }
      if (val == 28) {
        mz = "佤族";
        return mz;
      }
      if (val == 29) {
        mz = "羌族";
        return mz;
      }
      if (val == 30) {
        mz = "阿昌族";
        return mz;
      }
      if (val == 31) {
        mz = "纳西族";
        return mz;
      }
      if (val == 32) {
        mz = "拉祜族";
        return mz;
      }
      if (val == 33) {
        mz = "侗族";
        return mz;
      }
      if (val == 34) {
        mz = "京族";
        return mz;
      }
      if (val == 35) {
        mz = "柯尔克孜族";
        return mz;
      }
      if (val == 36) {
        mz = "哈尼族";
        return mz;
      }
      if (val == 37) {
        mz = "哈萨克族";
        return mz;
      }
      if (val == 38) {
        mz = "保安族";
        return mz;
      }
      if (val == 39) {
        mz = "俄罗斯族";
        return mz;
      }
      if (val == 40) {
        mz = "独龙族";
        return mz;
      }
      if (val == 41) {
        mz = "珞巴族";
        return mz;
      }
      if (val == 42) {
        mz = "高山族";
        return mz;
      }
      if (val == 43) {
        mz = "基诺族";
        return mz;
      }
      if (val == 44) {
        mz = "鄂伦春族";
        return mz;
      }
      if (val == 45) {
        mz = "鄂温克族";
        return mz;
      }
      if (val == 46) {
        mz = "塔吉克族";
        return mz;
      }
      if (val == 47) {
        mz = "塔塔尔族";
        return mz;
      }
      if (val == 48) {
        mz = "傈僳族";
        return mz;
      }
      if (val == 49) {
        mz = "畲族";
        return mz;
      }
      if (val == 50) {
        mz = "普米族";
        return mz;
      }
      if (val == 51) {
        mz = "裕固族";
        return mz;
      }
      if (val == 52) {
        mz = "锡伯族";
        return mz;
      }
      if (val == 53) {
        mz = "瑶族";
        return mz;
      }
      if (val == 54) {
        mz = "赫哲族";
        return mz;
      }
      if (val == 55) {
        mz = "撒拉族";
        return mz;
      }
      if (val == 56) {
        mz = "德昂族";
        return mz;
      }
      if (val == 57) {
        mz = "果敢族";
        return mz;
      }
      if (val == 58) {
        mz = "摩梭人";
        return mz;
      }
      if (val == 59) {
        mz = "穿青人族";
        return mz;
      }
      if (val == 60) {
        mz = "其他民族";
        return mz;
      }
    },
    maritalStatus(val) {
      var str = "";
      if (val == 1) {
        str = "未婚";
      }
      if (val == 2) {
        str = "已婚/再婚/同居";
      }
      if (val == 3) {
        str = "分居";
      }
      if (val == 4) {
        str = "离异";
      }
      if (val == 5) {
        str = "丧偶";
      }
      return str;
    },
    education(val) {
      var str = "";
      if (val == 1) {
        str = "研究生";
      }
      if (val == 2) {
        str = "大学本科";
      }
      if (val == 3) {
        str = "大学专科和专科学院";
      }
      if (val == 4) {
        str = "中等专业学校";
      }
      if (val == 5) {
        str = "技工学校";
      }
      if (val == 6) {
        str = "高中";
      }
      if (val == 7) {
        str = "初中";
      }
      if (val == 8) {
        str = "小学";
      }
      if (val == 9) {
        str = "文盲或半文盲";
      }
      if (val == 10) {
        str = "不详";
      }
      if (val == 11) {
        str = "硕士";
      }
      if (val == 12) {
        str = "博士";
      }
      return str;
    },
    isResideSixMonth(val) {
      var str = "";
      if (val == true) {
        str = "是";
      }
      if (val == false) {
        str = "否";
      }
      return str;
    },
    otherIndex(val) {
      var arr = [];
      arr = val.split(",");
      var str = "";
      for (var i in arr) {
        if (arr[i] == "1") {
          str += "无并发症及合并症;";
        }
        if (arr[i] == "2") {
          str += "缺血性心脏病;";
        }
        if (arr[i] == "3") {
          str += "心衰;";
        }
        if (arr[i] == "4") {
          str += "房颤;";
        }
        if (arr[i] == "5") {
          str += "外周性血管疾病;";
        }
        if (arr[i] == "6") {
          str += "高血压;";
        }
        if (arr[i] == "7") {
          str += "骨质疏松;";
        }
        if (arr[i] == "8") {
          str += "骨骼肌肉障碍;";
        }
        if (arr[i] == "9") {
          str += "焦虑抑郁;";
        }
        if (arr[i] == "10") {
          str += "肺癌;";
        }
        if (arr[i] == "11") {
          str += "代谢综合征、糖尿病;";
        }
        if (arr[i] == "12") {
          str += "感染;";
        }
        if (arr[i] == "13") {
          str += "胃食管反流;";
        }
        if (arr[i] == "14") {
          str += "其他;";
        }
      }
      return str;
    },
    diagnosisSource(val) {
      var arr = [];
      arr = val.split(",");
      var str = "";
      for (var i in arr) {
        if (arr[i] == "1") {
          str += "临床症状;";
        }
        if (arr[i] == "2") {
          str += "肺功能检查;";
        }
        if (arr[i] == "3") {
          str += "胸部X线检查;";
        }
        if (arr[i] == "4") {
          str += "胸部CT检查;";
        }
        if (arr[i] == "5") {
          str += "血气分析;";
        }
        if (arr[i] == "6") {
          str += "其他实验室检查：如血常规、痰培养等;";
        }
        if (arr[i] == "7") {
          str += "不详;";
        }
        if (arr[i] == "8") {
          str += "死亡补发病;";
        }
      }
      return str;
    },
    ncz_category(val) {
      var str = "";
      if (val == 1) {
        str = "蛛网膜下腔出血";
      }
      if (val == 2) {
        str = "脑出血";
      }
      if (val == 3) {
        str = "脑梗死";
      }
      if (val == 4) {
        str = "难分类的卒中";
      }
      return str;
    },
    diagnosis(val) {
      var arr = [];
      arr = val.split(",");
      var str = "";
      for (var i in arr) {
        if (arr[i] == "1") {
          str += "临床症状;";
        }
        if (arr[i] == "2") {
          str += "肌钙蛋白;";
        }
        if (arr[i] == "3") {
          str += "心电图;";
        }
        if (arr[i] == "4") {
          str += "血管造影;";
        }
        if (arr[i] == "5") {
          str += "超声心动图;";
        }
        if (arr[i] == "6") {
          str += "CT/CTA/SPECT;";
        }
        if (arr[i] == "7") {
          str += "MRI;";
        }
        if (arr[i] == "8") {
          str += "腰穿;";
        }
        if (arr[i] == "9") {
          str += "手术;";
        }
        if (arr[i] == "10") {
          str += "尸检或病理;";
        }
        if (arr[i] == "11") {
          str += "补发;";
        }
      }
      return str;
    },
  },
  mounted() {
    this.userInfo = JSON.parse(this.info);
    this.getInfo();
  },
  methods: {
    getInfo() {
      var url = "";
      if (this.chronicType == "糖尿病") {
        url = "/mbBkTnb/getOne";
      }
      if (this.chronicType == "高血压") {
        url = "/mbBkGxy/getOne";
      }
      if (this.chronicType == "慢阻肺") {
        url = "/mbBkMzf/getOne";
      }
      if (this.chronicType == "脑卒中") {
        url = "/mbBkNcz/getOne";
      }
      if (this.chronicType == "冠心病") {
        url = "/mbBkGxb/getOne";
      }
      if (this.chronicType == "慢性肾脏病") {
        url = "/mbBkMxszb/getOne";
      }
      if (this.chronicType == "肿瘤") {
        url = "/mbBkZl/getOne";
      }
      this.$post(url + "?id=" + this.tid).then((res) => {
        this.bqInfo = res.data;
      });
    },
  },
};
</script>

<style lang="scss" scoped>
.BKXQ {
  .top {
    padding: 20px;
    border: 1px solid #ccc;
  }
}
::v-deep .el-timeline-item__node--normal {
  left: 0;
}
</style>